package sg.edu.nus.iss.cats.form;

import org.apache.struts.validator.*;


public class LoginForm extends ValidatorForm {

    /**
     * A String variable representing our username form field
     */
    protected String username;

    /**
     * A String variable representing our password form field
     */
    protected String password;

        /**
         * A method to get the username form field.  Will be used
         * in our LoginAction class to retrieve the username
         */
        public String getUsername() {
            return username;
        }

        /**
         * A method to set the username form field.  This method is
         * called on using introspection from the ActionServlet
         * controller
         */
        public void setUsername(String username) {
            this.username = username;
        }

        /**
         * A method to set the password form field.  This method is
         * called on using introspection from the ActionServlet
         * controller
         */
        public void setPassword(String password) {
            this.password = password;
        }

        /**
         * A method to get the password form field.  Will be used
         * in our LoginAction class to retrieve the username
         */
        public String getPassword() {
            return password;
        }

    }
